import java.util.ArrayList;
import java.util.List;


public class MyBean {

	private List<MyData> dataList;
	
	
	public MyBean(){
		dataList =  new ArrayList<MyData>();
		
		// add 5 MyData objs to dataList obj
		Integer i =0;
		for (  i=0; i<5; i++){
			
			dataList.add( new MyData(i.toString() , "yogi" , "value: " + i.toString() ) );
			
		}
		
		for (i=0; i<5; i++){
			System.out.println(dataList.get(i).getId());
		}
	}


	public List<MyData> getDataList() {
		return dataList;
	}


	public void setDataList(List<MyData> dataList) {
		this.dataList = dataList;
	}
	
	
	

}
